@extends('admin.layout.index')

@section('content')
	<div class="col-md-12">
        <!--    Context Classes  -->
	    <div class="card">
	       
	        <div class="card-action">
	            用户详情信息
	        </div>
	        
	        <div class="card-content">
	            <div class="table-responsive">
	                <table class="table table-bordered" style="width:60%;">
	                    <tbody>
	                        <tr>
	                            <td>用户名：</td>
	                            <td>{{ $data['username'] }}</td>
	                            <td rowspan="3" style="width:100px"><img src="{{ $data['photo'] }}" alt="" width="100px"></td>
	                        </tr>
	                        <tr>
	                            <td>昵称：</td>
	                            <td>{{ $data['nickname'] }}</td>
	                        </tr>
	                        <tr>
	                            <td>性别：</td>
	                            <td>
	                            	@if($data['sex'] == 1)
	                            		女
	                            	@elseif($data['sex'] ==2)
	                            		男
	                            	@endif
	                            </td>
	                        </tr>
	                        <tr>
	                            <td>年龄：</td>
	                            <td colspan="2">{{ $data['age'] }}</td> 
	                        </tr>
	                        <tr>
	                        	<td>生日：</td>
	                            <td colspan="2">
	                            	@if($data['birthday'] != null)
	                            		{{ date('Y-m-d',$data['birthday']) }}
	                            	@endif
	                            </td>
	                        </tr>
	                        <tr>
	                        	<td>手机号：</td>
	                            <td colspan="2">{{ $data['phone'] }}</td>
	                        </tr>
	                        <tr>
	                            <td>邮箱：</td>
	                            <td colspan="2">{{ $data['email'] }}</td>
	                        </tr>
	                        <tr>
	                            <td>地址：</td>
	                            <td colspan="2">{{ $data['site'] }}</td>
	                        </tr>
	                    </tbody>
	                </table>
	            </div>
	        </div>
	    </div>
	    <!--  end  Context Classes  -->
	</div>
@endsection